﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NMF.Languages
{
    public class DateTimeType : DataType
    {
        public DateTimeType() : base("DateTime") { }

        public override System.Type SystemType
        {
            get { return typeof(DateTime); }
        }

        public override T Visit<S, T>(ITypeVisitor<S, T> visitor, S parameter)
        {
            return visitor.VisitDateTime(this, parameter);
        }

        public override T Visit<T>(ITypeVisitor<T> visitor)
        {
            return visitor.VisitDateTime(this);
        }

        public override void Visit(ITypeVisitor visitor)
        {
            visitor.VisitDateTime(this);
        }
    }
}
